#ifndef YUVPLAYER_H
#define YUVPLAYER_H

#include <QWidget>
#include <QFile>
#include "yuvfilespec.h"
#include <QDebug>
class YUVPlayer : public QWidget
{
    Q_OBJECT
private:
    QFile* _inYUVFile = nullptr;
    int _state = Stop;
    YUVFileSpec* _yuvFileSpec = nullptr;
public:

    enum State{

        Playing,
        Stop,
        Finish
    };

    explicit YUVPlayer(QWidget *parent = nullptr);
    ~YUVPlayer();
    int init(YUVFileSpec& yuvFileSpec);
    void play();
signals:


};

#endif // YUVPLAYER_H
